package main

import (
	"log"

	"server/app/routers"
	"server/core"
)

func main() {
	r := routers.InitRouter()
	if core.DB != nil {
		db, _ := core.DB.DB()
		defer db.Close()
	}
	log.Fatal(r.Run(":8001"))
}
